plex server timezone could not set 路 Issue #216 路 linuxserver/docker 您所在的位置:网站首页 plex server plex server timezone could not set 路 Issue #216 路 linuxserver/docker

plex server timezone could not set 路 Issue #216 路 linuxserver/docker

#plex server timezone could not set 路 Issue #216 路 linuxserver/docker| 来源: 网络整理| 查看: 265

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.

Expected Behavior

after set TZ environment or other methods could change the container timezone

Current Behavior

set TZ environments, also bind /etc/localtime and /etc/timezone. but in the container the date command and plex log still use UTC timezone.

Steps to Reproduce use docker-composer as configured below: recreate a new container and check the date command in container still return UTC timezone time.

$ sudo docker exec -it plex /bin/date Mon Dec 30 08:38:35 2019 $ date Mon 30 Dec 2019 04:38:36 PM CST

Environment

OS: Debian 5.3.15-1 (2019-12-07) CPU architecture: x86_64 How docker service was installed: docker compose from hub.docker.com

Command used to create docker container (run/create/compose/screenshot)

plex: image: linuxserver/plex # image: plexinc/pms-docker:latest container_name: plex restart: always network_mode: host volumes: - /mnt/data2/docker/config/plex:/config - /mnt/data2/docker/data/acme:/config/ssl - /mnt/data2/docker/data/plex/temp:/transcode - "/etc/timezone:/etc/timezone:ro" - "/etc/localtime:/etc/localtime:ro" environment: - PUID=1000 - PGID=1000 - VERSION=docker - TZ="Asia/Shanghai"

Docker logs

Attaching to plex plex | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. plex | [s6-init] ensuring user provided files have correct perms...exited 0. plex | [fix-attrs.d] applying ownership & permissions fixes... plex | [fix-attrs.d] done. plex | [cont-init.d] executing container initialization scripts... plex | [cont-init.d] 01-envfile: executing... plex | [cont-init.d] 01-envfile: exited 0. plex | [cont-init.d] 10-adduser: executing... plex | plex | ------------------------------------- plex | _ () plex | | | ___ _ __ plex | | | / | | | / \ plex | | | _ \ | | | () | plex | || |/ || __/ plex | plex | plex | Brought to you by linuxserver.io plex | We gratefully accept donations at: plex | https://www.linuxserver.io/donate/ plex | ------------------------------------- plex | GID/UID plex | ------------------------------------- plex | plex | User uid: 1000 plex | User gid: 1000 plex | ------------------------------------- plex | plex | [cont-init.d] 10-adduser: exited 0. plex | [cont-init.d] 40-chown-files: executing... plex | [cont-init.d] 40-chown-files: exited 0. plex | [cont-init.d] 45-plex-claim: executing... plex | [cont-init.d] 45-plex-claim: exited 0. plex | [cont-init.d] 50-gid-video: executing... plex | [cont-init.d] 50-gid-video: exited 0. plex | [cont-init.d] 60-plex-update: executing... plex | Docker is used for versioning skip update check plex | [cont-init.d] 60-plex-update: exited 0. plex | [cont-init.d] 99-custom-scripts: executing... plex | [custom-init] no custom files found exiting... plex | [cont-init.d] 99-custom-scripts: exited 0. plex | [cont-init.d] done. plex | [services.d] starting services plex | Starting Plex Media Server. plex | [services.d] done.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有